package com.gtw.modules.api.service.impl;

import com.gtw.modules.api.service.TbSignDataService;
import com.gtw.modules.dao.TbSignDataDao;
import com.gtw.modules.entity.TbSignData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.Map;

/**
 * Created by wuye on 2018/3/29.
 */
@Service
public class TbSignDataServiceImpl implements TbSignDataService {

    @Autowired
    private TbSignDataDao tbSignDataDao;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tbSignDataDao.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TbSignData record) {
        return tbSignDataDao.insert(record);
    }

    @Override
    public int insertSelective(TbSignData record) {
        return tbSignDataDao.insertSelective(record);
    }

    @Override
    public TbSignData selectByPrimaryKey(Integer id) {
        return tbSignDataDao.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(TbSignData record) {
        return tbSignDataDao.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TbSignData record) {
        return tbSignDataDao.updateByPrimaryKey(record);
    }

    @Override
    public TbSignData foundByUserId(Integer userid) {
        return tbSignDataDao.foundByUserId(userid);
    }

    @Override
    public int datediff(Map<String, Object> map) {
        return tbSignDataDao.datediff(map);
    }


}
